<!--
  准客户
-->
<ion-header>
    <ion-toolbar content-page class="fir-toolbar">
        <ion-buttons start>
            <button ion-button icon-only (click)="backButtonClick($event)">
                <i class="toolbar-back"></i>
            </button>
        </ion-buttons>
        <ion-title>
            <!--准客户{{clientProspectiveModels && clientProspectiveModels.length<2 ? 0 :clientTotalDes}}-->
            准客户{{clientTotalDes}}
        </ion-title>
        <ion-buttons end>
            <button ion-button icon-only adpmenutoggle>
                <i class="toolbar-menu"></i>
            </button>
        </ion-buttons>
    </ion-toolbar>

</ion-header>

<ion-content class="client-list-content-container" (ionScroll)="scrolling()" (touchend)="contentTouchEnd($event)"
             (ionScrollStart)="scrollStart($event)" (ionScrollEnd)="scrollEnd($event)">

    <ion-refresher [pullMax]="800" (ionRefresh)="doRefresh($event)" (ionPull)="filterConditionsShow = false">
        <ion-refresher-content></ion-refresher-content>
    </ion-refresher>

    <div ion-fixed class="top-shadow"></div>
    <div *ngIf="(!clientProspectiveModels || clientProspectiveModels.length < 2) && isLoaded" class="no-data">
        <div class="no-data-img"><img src="./assets/images/common/icon_nodata.png"></div>
        <div class="no-data-txt">没有相关数据</div>
    </div>
    <ion-list [virtualScroll]="clientProspectiveModels" [approxItemHeight]="clientItemHeight">

        <client-list-item [item]="item" *virtualItem="let item" (callNumber)="callClickHandle($event)" (searched)="searchedHandle($event)">
            <div class="item policy birth">
                <div class="item">
                    生日 <span>
                                {{item.birthDate?birthdayFormat(item.birthDate):"-" }}
                            </span>
                </div>
            </div>
        </client-list-item>
    </ion-list>

    <div class="is-arrival-bottom" [ngClass]="{'bottom':isArriveBottom}">
        到底了
    </div>

    <ion-fab bottom right class="go-up">
        <button ion-fab (click)="goUp()" color="light">
            <img class="go-up-icon" src="./assets/images/client/client-list/icon_top.png" alt="">
        </button>
    </ion-fab>

    <ion-fab class="fab-bottom-shadow-list">
        <button ion-fab style="display: none"></button>
    </ion-fab>
</ion-content>
<ion-footer>
    <div class="addBox" (click)="clientAddHandle($event)">
        <div class="addCust">
            <img src="./assets/images/client/client-add/icon_addCustomer.png" alt="">
            <span>
                添加客户
            </span>
        </div>
    </div>
</ion-footer>
